package com.xx.springboot.improve.domain;

import javax.persistence.*;
import javax.validation.constraints.NotNull;

/**
 * author: XiongXin
 * description:
 * time: 2017/3/8.
 */
@Entity
@Table(name = "users")
public class User {

    @Id
    private String id;

    @NotNull
    private String email;

    @NotNull
    private String name;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
